package com.ruoyi.project.wms.service.impl;

import java.util.List;
import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.common.zx.PageData;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.wms.mapper.WmsOrderTypeMapper;

/**
 * 物品单据类型Service业务层处理
 *
 * @author zx
 * @date 2023-05-29
 */
@Service
public class WmsOrderTypeServiceImpl extends BaseController
{
    @Autowired
    private WmsOrderTypeMapper wmsOrderTypeMapper;



    public PageData selectWmsOrderTypeById(Long id){
        return wmsOrderTypeMapper.selectWmsOrderTypeById(id);
    }

    /**
     * 查询物品单据类型列表
     *
     * @param pd
     * @return 物品单据类型
     */

    public List<PageData> selectWmsOrderTypeList(PageData pd){
        return wmsOrderTypeMapper.selectWmsOrderTypeList(pd);
    }

    /**
     * 新增物品单据类型
     *
     * @param pd 物品单据类型
     * @return 结果
     */
    public int insertWmsOrderType(PageData pd){
        return wmsOrderTypeMapper.insertWmsOrderType(pd);
    }

    /**
     * 修改物品单据类型
     *
     * @param pd 物品单据类型
     * @return 结果
     */
    public int updateWmsOrderType(PageData pd){
        return wmsOrderTypeMapper.updateWmsOrderType(pd);
    }

    /**
     * 批量删除物品单据类型
     *
     * @param ids 需要删除的物品单据类型主键
     * @return 结果
     */
    public int deleteWmsOrderTypeByIds(Long[] ids)
    {
        return wmsOrderTypeMapper.deleteWmsOrderTypeByIds(ids);
    }

    /**
     * 删除物品单据类型信息
     *
     * @param id 物品单据类型主键
     * @return 结果
     */
    public int deleteWmsOrderTypeById(Long id){
        return wmsOrderTypeMapper.deleteWmsOrderTypeById(id);
    }
}
